package com.punch.common.vo.user.guardian;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 家长下的学生列表VO
 *
 * @author xiaol
 * @since 2020-07-29 23:10:02
 */
@Data
@ApiModel(value = "家长下的学生列表VO")
public class GuardianStudentVO implements Serializable {


    @ApiModelProperty(name = "studentId", notes = "学生id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long studentId;

    @ApiModelProperty(name = "addStuType", notes = "添加学生方式 0-学校添加(家长进行绑定) 1-家长自行添(可修改学生信息)")
    private Integer addStuType;


    @ApiModelProperty(name = "avatar", notes = "头像,无头像时使用默认男/女生头像")
    private String avatar;

    @ApiModelProperty(value = "姓名")
    private String studentName;

    @ApiModelProperty(value = "性别 0-女 1-男 2-未知")
    private Integer sex;

    @ApiModelProperty(value = "学校Id,即班级创建者id")
    private String schoolId;

    @ApiModelProperty(value = "学校名称")
    private String schoolName;

    @ApiModelProperty(value = "年级")
    private Integer gradeYear;

    @ApiModelProperty(value = "班级")
    private String gradeClass;

    @ApiModelProperty(value = "考勤率")
    private Double attendanceRate;


    @ApiModelProperty(value = "地区id")
    @JsonIgnore
    private Integer areaId;

}
